﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Guoc.DAL.Interface;
using Guoc.DAL.Domain;
using Guoc.DAL.Common;
using NHibernate;
namespace Guoc.DAL.Service
{
   public class EmployeeSerivce:BaseService<Employee>, IEmployee
    {
      
        public Domain.Employee GetEmployee(string userName)
        {
           Employee emp = new Employee();
           emp = base.GetList().Where<Employee>(e => e.LoginName == userName)
                         .DefaultIfEmpty(emp).First();
          
            return emp;
        }
       
       
    }
}
